package com.bootdo.appsystem.dao;

import com.bootdo.appsystem.domain.SellerDO;
import com.bootdo.appsystem.domain.UseraccountDO;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 
 * @author xiaoxiao
 * @email 806191255@qq.com
 * @date 2018-05-12 14:42:14
 */
@Mapper
public interface UseraccountDao {

	UseraccountDO get(Integer uid);
	
	List<UseraccountDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(UseraccountDO useraccount);
	
	int update(UseraccountDO useraccount);
	
	int remove(Integer UID);
	
	int batchRemove(Integer[] uids);

	void addMoney(@Param("uid") Integer uid, @Param("money") Double money);

	void addMoneyNotAll(@Param("uid") Integer uid, @Param("money") Double money);

	List<UseraccountDO> getUserChildList(Map<String, Object> map);

	int getCountUserChildList(Map<String,Object> map);

	List<SellerDO> getSellerChildList(Map<String, Object> map);

	int getCountSellerChildList(Map<String, Object> map);
}
